/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipti.br.tag.bo;

import org.ipti.br.tag.dao.CityFacade;
import org.ipti.br.tag.entity.City;
import java.util.List;
import javax.inject.Inject;
import javax.ejb.Stateless;

/**
 *
 * @author israel
 */
@Stateless
public class CityBO {

    @Inject
    private CityFacade cityDAO;

    public CityFacade getCityDAO() {
        return cityDAO;
    }

    public void create(City city) {
        getCityDAO().create(city);
    }

    public void edit(City city) {
        getCityDAO().edit(city);
    }

    public void remove(City city) {
        getCityDAO().remove(city);
    }

    public City find(Object id) {
        return getCityDAO().find(id);
    }

    public List<City> findAll() {
        return getCityDAO().findAll();
    }

    public List<City> findAllOrder() {
        return getCityDAO().findAllOrder();
    }
}
